package br.com.dreamsource.mobile.jmesql.util;

public class CharacterDataOE {
    
    static int getProperties(int ch) {
        char offset = (char)ch;
        int props = A[Y[X[offset>>5]|((offset>>1)&0xF)]|(offset&0x1)];
        return props;
    }
    
    static boolean isJavaIdentifierStart(int ch) {
        int props = getProperties(ch);
        return ((props & 0x00007000) >= 0x00005000);
    }
    
    static boolean isJavaIdentifierPart(int ch) {
        int props = getProperties(ch);
        return ((props & 0x00003000) != 0);
    }
    
    static boolean isWhitespace(int ch) {
        int props = getProperties(ch);
        return ((props & 0x00007000) == 0x00004000);
    }
    
    static final char X[] = (
            "\000\020\020\020\040\040\040\040\060\060\060\060\060\060\060\100\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040"+
            "\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040").toCharArray();
    
    static final char Y[] = (
            "\000\002\002\002\002\002\002\002\002\002\002\002\002\002\002\002\004\004\004"+
            "\004\004\004\004\004\004\004\004\004\004\004\004\004\002\002\002\002\002\002"+
            "\002\002\002\002\002\002\002\002\002\002\006\006\006\006\006\006\006\006\006"+
            "\006\006\006\006\006\006\006\006\006\006\006\006\006\006\006\002\002\002\002"+
            "\002\002\002\002").toCharArray();
    
    static final int A[] = new int[8];
    static final String A_DATA =
            "\u7800\000\u4800\u1010\u7800\000\u7800\000\u4800\u1010\u4800\u1010\u4000\u3006"+
            "\u4000\u3006";
    
    static {
        {
            char[] data = A_DATA.toCharArray();
            if (!(data.length == (8 * 2))) {
                
            }
            int i = 0, j = 0;
            while (i < (8 * 2)) {
                int entry = data[i++] << 16;
                A[j++] = entry | data[i++];
            }
        }
        
    }
}
